<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章编辑</title>
</head>
<body>
<?php require("adminnav.php"); ?>
<?php
//编辑分类
require_once("conn.php");
session_start();
$Art_id=$_GET['Art_id'];
$sql="SELECT * FROM artcontent LEFT JOIN (artclass) ON ( artclass.cs_id = artcontent.cs_id )  where Art_id=".$_GET['Art_id'];
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$cs_name=$row['cs_name'];
?>
<form action="editartsave.php?Art_id=<?php echo $Art_id ;?>" method="post" name="editartart">
 文章标题:
<input name="title" type="text" value="<?php echo $row['Title'];?>" />

文章分类:
<select name="artclass" >
<option value="<?php echo $row['cs_id']?>"><?php echo $row['cs_name'];?> </option>
<?php
    $sql2="select * from artclass where cs_name!='$cs_name'";
    $result2=mysql_query($sql2);
    while($row2=mysql_fetch_array($result2)){
?>
<option value="<?php echo $row2['cs_id']?>"><?php echo $row2['cs_name'];?> </option>
<?php }?>
<textarea name="content" id="content" rows="50" cols="152" style="width: 520px; height: 295px"><?php echo $row['Content'];?></textarea> 
<p>
  <input type="submit" name="addart" id="button" value="提交" />   
 <script charset="utf-8" src="../editor/kindeditor.js"></script>
		<script>
			KE.show({
				id : 'content',
				width: '520px',
                urlType : 'absolute',
                resizeMode:0,
                allowUpload : false,
				filterMode : true
			});
		</script>
</form>
</body>
</html>